package com.sth.springframework.beans.factory.support;

import cn.hutool.core.bean.BeanException;
import com.sth.springframework.beans.BeansException;
import com.sth.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @Author: sitianhong
 * @Description: 定义实例化策略接口
 * @Since: create in 2021/8/27 0027 23:31
 */
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;
}
